import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
import { component } from 'vue/types/umd'
import p11 from '../views/main/P1.vue'
import p22 from '../views/main/P2.vue'
import p3 from '../views/main/P3.vue'
import p4 from  '../views/main/P4.vue'
Vue.use(VueRouter)

const routes: Array<RouteConfig> = [
  {
    path:'/p11',
    component:p11
  }, {
    path:'/p22',
    component:p22
  },
  {
    path:'/p3',
    component:p3
  },{
    path:'/p4',
    component:p4
  }
  // {
  //   path:'/',
  //   redirect:'/main1'
  // },
  // {
  //   path:'/page',
  //   component:page
  // },{
  //   path:'/dh',
  //   component:dh
  // }
]

const router = new VueRouter({
  routes
})
export default router
